package com.hare.system_api.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @program: Hare
 * @description: 后台管理=>路由信息
 * @author: Hare
 * @create: 2022-11-07 15:15
 * @Version 6.0.1
 **/
@Data
@JsonInclude(value = JsonInclude.Include.NON_EMPTY)
//@ApiModel("路由信息")
public class RoutesVO implements Serializable {
    private static final long serialVersionUID = 1L;

    //@ApiModelProperty("路由名称")
    private String name;

    //@ApiModelProperty("路由地址")
    private String path;

    //@ApiModelProperty("是否隐藏路由，当设置 true 的时候该路由不会再侧边栏出现")
    @JsonInclude(JsonInclude.Include.NON_DEFAULT)
    private boolean hidden=false;

    //@ApiModelProperty("重定向地址，当设置 noRedirect 的时候该路由在面包屑导航中不可被点击")
    private String redirect;

    //@ApiModelProperty("组件地址")
    private String component;

    //@ApiModelProperty("其他元素")
    private MetaVO meta;

    //@ApiModelProperty("子路由")
    private List<RoutesVO> children;
}